<?php /* Smarty version 2.6.20, created on 2012-07-27 02:28:18
         compiled from tracing_single_cn.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>快递追踪</title>
<link href="../public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function changbackgroundcolor() {
		var trs = document.getElementById("table1").getElementsByTagName("tr");
		for ( var i = 0; i < trs.length; i++) {
			if (i == 0) {
				trs[i].style.backgroundColor = "#F3E9FF";
			} else if (i % 2 == 0) {
				trs[i].style.backgroundColor = "#F2F3FF";
			} else {
				trs[i].style.backgroundColor = "#FFFFFF";
			}
		}
	}
</script>
</head>

<body onLoad="changbackgroundcolor();">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "head_cn.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<div class="c960">
		<div class="con960">


			<div class="sycon">
				<div class="syleft">
					<div class="lxwm">
						<div class="fuwulist">
							<ul>
								<li class="fuwuti">快递服务</li> <?php $_from = $this->_tpl_vars['express_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['loop']):
?>
								<li
									class="<?php if ($this->_tpl_vars['cat_name'] == $this->_tpl_vars['loop']['cat_name']): ?>fuwutiaon<?php else: ?>fuwutia<?php endif; ?>"><a
									href="<?php if ($this->_tpl_vars['loop']['cat_name'] == 'Express Tracking'): ?>tracing<?php else: ?>express<?php endif; ?>.php?charset=cn&cat_name=<?php echo $this->_tpl_vars['loop']['cat_name']; ?>
"><?php echo $this->_tpl_vars['loop']['cat_name_en']; ?>
</a></li>
								<?php endforeach; endif; unset($_from); ?>
							</ul>
						</div>

					</div>
					<form action="tracing.php?charset=cn&cat_name=Express Tracking"
						method="post">
						<div class="syleftbotzw">
							<input type="text" name="code" id="textfield" class="track-kg" />
							<input type="submit" class="track-an" value="搜索" />
						</div>
					</form>
				</div>
				<div class="hyright">
					<div class="ddcxt">

						<form action="tracing.php?charset=cn&cat_name=Express Tracking"
							method="post">
							<div class="ddcxtleft">
								<div class="ddcxtltop">快件查询</div>
								
								<div class="ddcxbg">
									<div class="ddcxti">请输入快件单号</div>
									<div class="ddcxti2">查询多个运单请用空格,逗号或者分号分隔</div>
									<div class="ddcxkg">
										<input name="code" type="text" class="ddxc-kg" />
									</div>
									<div class="ddcx-an">
										<label> <input type="submit" name="button" id="button"
											value="搜索" class="aaaa" />
										</label>
									</div>
								</div>
							</div>
						</form>
						<div class="ddcxtright">
							<img src="<?php echo $this->_tpl_vars['src']; ?>
" />
						</div>
					</div>
					<!-- result -->
					<?php if ($this->_tpl_vars['latest'] == null): ?>
					<div class="ddcxtlerror">
						<b>快件单号:<?php echo $this->_tpl_vars['id']; ?>
</b>
					</div>
					<div class="ddcxtlerror">没有您查询的信息,请输入正确的快件单号!</div>
					<?php endif; ?>
					<div class="syright">
						<?php if ($this->_tpl_vars['latest']['orderId']): ?>
						<div class="newscon">
							<div class="newsbt">快件单号: <?php echo $this->_tpl_vars['latest']['orderId']; ?>
</div>
						</div>
						<div class="sy-status">

							<table>
								<tr>
									<td><b>出发地:<?php echo $this->_tpl_vars['latest']['origin']; ?>
</b></td>
								</tr>
								<tr>
									<td><b>到达地:<?php echo $this->_tpl_vars['latest']['destination']; ?>
</b></td>
								</tr>
								<tr>
									<td><b>物品件数 :<?php echo $this->_tpl_vars['latest']['items']; ?>
</b></td>
								</tr>
								<?php if ($this->_tpl_vars['latest']['status'] == 'ongoing'): ?>
								<tr>
									<td><b>状态:运送中</b></td>
								</tr>
								<?php endif; ?> <?php if ($this->_tpl_vars['latest']['status'] == 'completed'): ?>
								<tr>
									<td><b>状态:已送达</b></td>
								</tr>
								<tr>
									<td><b>完成时间:<?php echo $this->_tpl_vars['latest']['completeTime']; ?>
</b></td>
								</tr>
								<?php if ($this->_tpl_vars['latest']['receiver'] != ' ' && $this->_tpl_vars['latest']['receiver'] != ""): ?>
								<tr>
									<td><b>签收人:<?php echo $this->_tpl_vars['latest']['receiver']; ?>
</b></td>
								</tr>
								<?php endif; ?> <?php endif; ?>
							</table>
						</div>

						<table width="100%" height="10px">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table id="table1" class="tableb">
							<tr>
								<th>时间</th>
								<th>地点</th>
								<th>详情</th>
							</tr>
							<?php $_from = $this->_tpl_vars['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['loop']):
?>
							<tr height="25px">
								<th width="25%"><?php echo $this->_tpl_vars['loop']['time']; ?>
</th>
								<th width="18%" align=left><?php echo $this->_tpl_vars['loop']['location']; ?>
</th>
								<th align=left><?php echo $this->_tpl_vars['loop']['detail']; ?>
</th>
							</tr>
							<?php endforeach; endif; unset($_from); ?>

						</table>
						<table width="100%" height="10px">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<?php echo $this->_tpl_vars['page_nav']; ?>
 <?php endif; ?>
					</div>
				</div>
			</div>
		</div>
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot_cn.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	</div>
	</div>
</body>
</html>